package com.gzhryc.shared_device.iot.core;

public interface IOTClientEventListener {

	/**
	 * 连接服务器成功
	 * 
	 * @param event
	 */
	public void active(IOTClientEvent event);

	/**
	 * 接收消息
	 * 
	 * @param event
	 */
	public void receiveMessage(IOTClientEvent event);

	/**
	 * 状态变更
	 * 
	 * @param event
	 */
	public void stateChange(IOTClientEvent event);

	/**
	 * 发送消息
	 * 
	 * @param msg
	 * @param iotId
	 * @param topic
	 */
	public void sendMessage(IOTMessage msg, Long iotId, String topic);
}
